package com.jgjc.utils;

import java.util.Map;

public class ResultResUtils {

    public static void ResultRes(int code, Map<String, Object> map) {
        if (code > 0) {
            map.put("message", "操作成功");
            map.put("status", "SUCCESS");
        } else {
            map.put("message", "操作失败");
            map.put("status", "FAILURE");
        }
        map.put("content", null);
        map.put("extra", null);
    }
}
